<?php

// +----------------------------------------------------------------------
// | 版权所有 2017-2027 云南环拓科技有限公司，并保留所有权利。
// +----------------------------------------------------------------------
// | Copyright (c) 2017-2027 http://www.yn123.com All rights reserved.
// +----------------------------------------------------------------------
// | Notice: This code is not open source, it is strictly prohibited
// |         to distribute the copy, otherwise it will pursue its
// |         legal responsibility.
// | 注意：  这不是一个自由软件！您只能在不用于商业目的的前提下对程序代码进行修改和使用,
// |        不允许对程序代码以任何形式任何目的的再发布。
// +----------------------------------------------------------------------
// | Author: feraner <feraner@163.com> 
// | Date: 2019/9/29
// +----------------------------------------------------------------------

namespace app\common\constants;

/**
 * 静态常量类
 * Class ApiConstant
 * @package app\common\constants
 * @author feraner<feraner@163.com>
 * @date 2019/9/29
 */
class ApiConstant
{

    const API_SUCCESS = 200;
    const API_SUCCESS_STR = 'success';

    const API_PARAMETER_ERROR= 100;
    const API_PARAMETER_ERROR_STR= '参数错误';

    const PARAMETER_NOT_PASS = 300;
    const PARAMETER_NOT_PASS_STR = '数据检测失败！';

    /** ======== 1开头的代表系统错误 ========= */


    const USER_IS_NOT_LOGIN = 100001;
    const USER_IS_NOT_LOGIN_STR = '用户未登录,请先登录!';

    const API_ERROR = 100002;
    const API_ERROR_STR = '接口错误!';

    const API_UPLOAD_IMG_ERROR = 100003;
    const API_UPLOAD_IMG_ERROR_STR = '上传图片失败';

    const USER_INFO_NOT_DONE = 100004;
    const USER_INFO_NOT_DONE_STR = '您的信息不完善，请先完善信息！';

    const API_SEND_SMS_CODE_ERROR = 100005;
    const API_SEND_SMS_CODE_ERROR_STR = '发送短信验证码失败!';

    const API_SEND_SMS_CODE_TOO_NEAR = 100006;
    const API_SEND_SMS_CODE_TOO_NEAR_STR = '发送短信太频繁,请稍后再试!';


    /** =========== 2开头的代表兼职类错误 ====== */

    const JOB_TYPE_IS_NOT_FUND = 200001;
    const JOB_TYPE_IS_NOT_FUND_STR = '兼职类型还没有配置！';

    const JOB_PARAMETER_NOT_PASS = 200002;
    const JOB_PARAMETER_NOT_PASS_STR = '数据检测失败！';

    const JOB_SAVE_DRAFT_ERROR = 200003;
    const JOB_SAVE_DRAFT_ERROR_STR = '保存草稿失败！';

    const JOB_PUBLISH_ERROR = 200004;
    const JOB_PUBLISH_ERROR_STR = '发布兼职失败';

    const JOB_PUBLISH_USER_INFO_NOT_DONE = 200005;
    const JOB_PUBLISH_USER_INFO_NOT_DONE_STR = '您信息不完善，请先补充信息！';

    const JOB_PUBLISH_NOT_ENOUGH_BEAN = 200006;
    const JOB_PUBLISH_NOT_ENOUGH_BEAN_STR = '您的发布豆不够，请先充值发布豆';

    const JOB_PUBLISH_INSERT_JOBS_ERR = 200007;
    const JOB_PUBLISH_INSERT_JOBS_ERR_STR = '保存jobs信息失败！';

    const JOB_PUBLISH_INSERT_JOBS_CONTENT_ERR = 200008;
    const JOB_PUBLISH_INSERT_JOBS_CONTENT_ERR_STR = '保存jobs内容信息失败！';

    const JOB_AUDIT_ERROR = 200009;
    const JOB_AUDIT_ERROR_STR = '审核失败!';

    const JOB_NOT_FUND_ERROR = 200010;
    const JOB_NOT_FUND_ERROR_STR = '兼职没有找到!';

    const JOB_APPLY_ERROR = 200011;
    const JOB_APPLY_ERROR_STR = '报名兼职失败！';

    const JOB_APPLY_AGAIN_ERROR = 200012;
    const JOB_APPLY_AGAIN_ERROR_STR = '您已经报名,请务重复报名！';

    const JOB_USER_APPLY_CHECK_ERROR = 200013;
    const JOB_USER_APPLY_CHECK_ERROR_STR = '审核用户报名失败!';

    const JOB_SEARCH_ERROR = 200014;
    const JOB_SEARCH_ERROR_STR = '没有符合条件的相关兼职信息!';



    /** =========== 3开头的代表用户类错误 ===== */

    const USER_COLLECT_ERROR = 300000;
    const USER_COLLECT_ERROR_STR = '收藏失败！';





    /** ============ 4开头代表二手商城类错误 ====== */

    const MARKET_SAVE_DRAFT_ERROR = 400001;
    const MARKET_SAVE_DRAFT_ERROR_STR = '保存二手商品草稿失败!';

    const MARKET_PUBLISH_INSERT_MARKET_CONTENT_ERR = 400002;
    const MARKET_PUBLISH_INSERT_MARKET_CONTENT_ERR_STR = '保存二手商品详情失败!';

    const MARKET_PUBLISH_INSERT_MARKET_ERR = 400003;
    const MARKET_PUBLISH_INSERT_MARKET_ERR_STR = '保存二手商品基本信息失败!';

    const MARKET_PUBLISH_ERROR = 400004;
    const MARKET_PUBLISH_ERROR_STR = '发布二手商品失败！';

    const MARKET_NOT_FUND_ERROR = 400005;
    const MARKET_NOT_FUND_ERROR_STR = '二手商品信息获取失败';

    const MARKET_DELETE_GOODS_ERROR = 400006;
    const MARKET_DELETE_GOODS_ERROR_STR = '删除二手商品失败！';

    const MARKET_DELETE_GOODS_EXTEND_ERROR = 400007;
    const MARKET_DELETE_GOODS_EXTEND_ERROR_STR = '删除二手商品扩展表失败！';

    const MARKET_GOODS_AUDIT_ERROR = 400008;
    const MARKET_GOODS_AUDIT_ERROR_STR = '审核二手商品失败!';


    const MARKET_PUBLISH_NOT_ENOUGH_BEAN = 400009;
    const MARKET_PUBLISH_NOT_ENOUGH_BEAN_STR = '您的发布豆不够，请先充值发布豆';


    /** ============ 5开头代表配置类错误 ====== */

    const CHARGE_ACTIVE_NOT_FUND = 500001;
    const CHARGE_ACTIVE_NOT_FUND_STR = '充值活动已结束或未开始，请稍微再试！';







}
